package com.example.webmodule.listener;

import com.alibaba.nacos.api.naming.pojo.Instance;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * @ClassName EY-ServiceEvent
 * @Description com.example.webmodule.listener
 * @Author menyj
 * @Date 2025/3/19
 **/
public class InstanceEvent extends ApplicationEvent {

    private String serviceId;
    private String group;
    private  List<Instance> instanceList;
    public InstanceEvent(Object source, String serviceId, String group, List<Instance> instanceList) {
        super(source);
        this.serviceId = serviceId;
        this.group = group;
        this.instanceList = instanceList;
    }

    public List<Instance> geInstanceList() {
        return instanceList;
    }

    public String getServiceId() {
        return serviceId;
    }

    public String getGroup() {
        return group;
    }
}
